<? 
	$title="Delete category"; 
	$pageid="5";
	$accessid="a00";
	
	require("required/dbconnect.php"); 
	require("required/function.php");
	require("required/header.php");
	
	
	
	if(isset($_POST['btnsubmit']))
	{
		$id=$_POST['id'];
		
		$delete=mysql_query("delete from os_custserv_content where id=$id")or die(mysql_error());
?>
<table width="95%" cellpadding="2" cellspacing="1">
	
	<td valign="top" align="center">
	<table width="100%"  class="solidborder">
	<tr>
		<td height="20" colspan="7" align="left" style="background: url(images/tbl_th.png);color:#FFFFFF" ><font color="#FFFFFF"><strong>Delete record</strong></font> </td>
	</tr>
	<tr>
		<td>Record deleted!</td>
	</tr>
	<tr>
		<td colspan="3" align="center">
		<input type="button" value="Back" onClick="window.open('custserv.php','_self')" class="button"><br><br>
		</td>
	</tr>
 </table>
	</td>
 
</table>
<?
	}
	else
	{
	
		$id=$_GET['id'];
	
	
?>
<table width="95%" cellpadding="2" cellspacing="1">
	<td width="16%" valign="top">
		<? require("required/menu.php") ?>
	</td>
	<td valign="top" align="center">
	<table width="100%" class="solidborder" >
	<tr>
		<td height="20" colspan="7" align="left" style="background: url(images/tbl_th.png);color:#FFFFFF" ><font color="#FFFFFF"><strong>Delete record</strong></font> </td>
	</tr>
	<tr>
		<td>Confirm to delete?</td>
	</tr>
	<tr>
		<td colspan="3" align="center">
		<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
		<input type="hidden" value="<?= $id ?>" name="id">
		<input type="submit" value="Yes" name='btnsubmit' class="button">
		<input type="button" value="No" onClick="history.go(-1)" class="button">
		</form>
		</td>
	</tr>
	</table>
	</td>
 
</table>
<? } require("required/footer.php"); ?>
